package com.lbd.system.dao;

import com.lbd.system.bean.UserRole;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.List;

/**
 * Created by WangYajie on 2016/9/12.
 */
public interface UserRoleRepository extends PagingAndSortingRepository<UserRole, Serializable>, JpaSpecificationExecutor<UserRole> {
    void deleteByEmpId(String id);

    List<UserRole> findByEmpId(String id);
}
